import Vue from "vue"
import App from "./App.vue"
import router from "./router"
import store from "./store"
import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css"
import "./assets/style/iconfont.css"
import Http from "./service/request.js"
import axios from "axios"
import AMap from "vue-amap"

Vue.use(ElementUI)
Vue.use(AMap)
Vue.config.productionTip = false
Vue.prototype.$Http = Http
Vue.prototype.$axios = axios

AMap.initAMapApiLoader({
  // 高德key
  key: "11da93780e41bdb091772f25e4d67fdc",
  // 插件集合 （插件按需引入）
  plugin: [
    "AMap.Scale",
    "AMap.OverView",
    "AMap.ToolBar",
    "AMap.MapType",
    "AMap.PlaceSearch",
    "AMap.Geolocation",
    "AMap.Geocoder"
  ],
  v: "1.4.4",
  uiVersion: "1.0"
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app")
